package com.ruoyi.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.WebContactDataMapper;
import com.ruoyi.web.domain.WebContactData;
import com.ruoyi.web.service.IWebContactDataService;

/**
 * 联系我们模块Service业务层处理
 * 
 * @author li
 * @date 2025-08-01
 */
@Service
public class WebContactDataServiceImpl implements IWebContactDataService 
{
    @Autowired
    private WebContactDataMapper webContactDataMapper;

    /**
     * 查询联系我们模块
     * 
     * @param id 联系我们模块主键
     * @return 联系我们模块
     */
    @Override
    public WebContactData selectWebContactDataById(Long id)
    {
        return webContactDataMapper.selectWebContactDataById(id);
    }

    /**
     * 查询联系我们模块列表
     * 
     * @param webContactData 联系我们模块
     * @return 联系我们模块
     */
    @Override
    public List<WebContactData> selectWebContactDataList(WebContactData webContactData)
    {
        return webContactDataMapper.selectWebContactDataList(webContactData);
    }

    /**
     * 新增联系我们模块
     * 
     * @param webContactData 联系我们模块
     * @return 结果
     */
    @Override
    public int insertWebContactData(WebContactData webContactData)
    {
        return webContactDataMapper.insertWebContactData(webContactData);
    }

    /**
     * 修改联系我们模块
     * 
     * @param webContactData 联系我们模块
     * @return 结果
     */
    @Override
    public int updateWebContactData(WebContactData webContactData)
    {
        return webContactDataMapper.updateWebContactData(webContactData);
    }

    /**
     * 批量删除联系我们模块
     * 
     * @param ids 需要删除的联系我们模块主键
     * @return 结果
     */
    @Override
    public int deleteWebContactDataByIds(Long[] ids)
    {
        return webContactDataMapper.deleteWebContactDataByIds(ids);
    }

    /**
     * 删除联系我们模块信息
     * 
     * @param id 联系我们模块主键
     * @return 结果
     */
    @Override
    public int deleteWebContactDataById(Long id)
    {
        return webContactDataMapper.deleteWebContactDataById(id);
    }
}
